Make the init.d scripts messages fancier by prepending them a [....] block.
authorDidier Raboud <odyx@debian.org>
Fri, 30 Mar 2012 12:48:42 +0000 (14:48 +0200)
committerDidier Raboud <odyx@debian.org>
Sat, 31 Mar 2012 16:46:19 +0000 (18:46 +0200)
commitdcac6db7d7b5431c3c568508d1c279d18b9a084c
tree11c17ee071b5f8872a78d303e2f6955eb852af36
parentd62560211aaab0094333072d494b2f5b82f09031
Make the init.d scripts messages fancier by prepending them a [....] block.

== Implementation ==

* The logging functions assign the status block as "[....]" when
  printing the log message.
  Concerned functions:
  - log_daemon_msg
  - log_action_begin_msg
  - log_begin_msg (despite not being a documented interface)

* The log message conclusion functions replace the status block by
  either a green [ ok ], a yellow [warn] or a red [FAIL] by
  Concerned functions:
  - log_end_msg

  This is implemented as _pre/_post functions.

== Documentation ==

* lsb-base.README.Debian is updated with the new _pre/_post functions.
* lsb-base.NEWS gets a new entry with information meant for experimental
  users and init.d scripts maintainers.

== Pseudo-headers ==

Closes: #416485
Reported-by: Alessio <alga777@gmail.com>
Not-used-but-useful-patch-by: Alessio <alga777@gmail.com>
Not-used-but-useful-patch-by: Nico Golde <nion@debian.org>
Idea-by: Mehdi Dogguy <mehdi@debian.org>
Signed-off-by: Didier Raboud <odyx@debian.org>
debian/lsb-base.NEWS [new file with mode: 0644]
debian/lsb-base.README.Debian
init-functions